package com.timothy.dao.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 管理员表-IDEA
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("idea_user")
public class IdeaUser extends Model<IdeaUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 管理员ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户登录ID
     */
	private String userid;
    /**
     * 用户手机号
     */
	private String phonenum;
    /**
     * 登录密码
     */
	private String password;
    /**
     * 电子邮箱
     */
	private String email;
    /**
     * 昵称
     */
	private String nickname;
	private String icon;
    /**
     * 最后一次登录时间
     */
	@TableField("last_login_time")
	private Date lastLoginTime;
    /**
     * 最后一次登录IP地址
     */
	@TableField("last_login_ip")
	private String lastLoginIp;
    /**
     * 出生日期
     */
	private Date birthday;
    /**
     * 性别；1-男; 2-女
     */
	private Integer gender;
    /**
     * 访问网站
     */
	private String website;
    /**
     * 标注
     */
	private String remark;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 状态；1-有效; 0:无效
     */
	private Integer status;
    /**
     * 渠道数据权限；多渠道权限之间逗号分割，-1代表拥有所有的数据权限
     */
	@TableField("channel_ids")
	private String channelIds;


	public Integer getId() {
		return id;
	}

	public IdeaUser setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getUserid() {
		return userid;
	}

	public IdeaUser setUserid(String userid) {
		this.userid = userid;
		return this;
	}

	public String getPhonenum() {
		return phonenum;
	}

	public IdeaUser setPhonenum(String phonenum) {
		this.phonenum = phonenum;
		return this;
	}

	public String getPassword() {
		return password;
	}

	public IdeaUser setPassword(String password) {
		this.password = password;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public IdeaUser setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getNickname() {
		return nickname;
	}

	public IdeaUser setNickname(String nickname) {
		this.nickname = nickname;
		return this;
	}

	public String getIcon() {
		return icon;
	}

	public IdeaUser setIcon(String icon) {
		this.icon = icon;
		return this;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public IdeaUser setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
		return this;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public IdeaUser setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
		return this;
	}

	public Date getBirthday() {
		return birthday;
	}

	public IdeaUser setBirthday(Date birthday) {
		this.birthday = birthday;
		return this;
	}

	public Integer getGender() {
		return gender;
	}

	public IdeaUser setGender(Integer gender) {
		this.gender = gender;
		return this;
	}

	public String getWebsite() {
		return website;
	}

	public IdeaUser setWebsite(String website) {
		this.website = website;
		return this;
	}

	public String getRemark() {
		return remark;
	}

	public IdeaUser setRemark(String remark) {
		this.remark = remark;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public IdeaUser setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public IdeaUser setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public IdeaUser setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public String getChannelIds() {
		return channelIds;
	}

	public IdeaUser setChannelIds(String channelIds) {
		this.channelIds = channelIds;
		return this;
	}

	public static final String ID = "id";

	public static final String USERID = "userid";

	public static final String PHONENUM = "phonenum";

	public static final String PASSWORD = "password";

	public static final String EMAIL = "email";

	public static final String NICKNAME = "nickname";

	public static final String ICON = "icon";

	public static final String LAST_LOGIN_TIME = "last_login_time";

	public static final String LAST_LOGIN_IP = "last_login_ip";

	public static final String BIRTHDAY = "birthday";

	public static final String GENDER = "gender";

	public static final String WEBSITE = "website";

	public static final String REMARK = "remark";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";

	public static final String STATUS = "status";

	public static final String CHANNEL_IDS = "channel_ids";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "IdeaUser{" +
			"id=" + id +
			", userid=" + userid +
			", phonenum=" + phonenum +
			", password=" + password +
			", email=" + email +
			", nickname=" + nickname +
			", icon=" + icon +
			", lastLoginTime=" + lastLoginTime +
			", lastLoginIp=" + lastLoginIp +
			", birthday=" + birthday +
			", gender=" + gender +
			", website=" + website +
			", remark=" + remark +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", status=" + status +
			", channelIds=" + channelIds +
			"}";
	}
}
